'use strict';
var myApp=angular.module('myApp',['ui.router','myApp.services','mePageLoading','angularUtils.directives.dirPagination']);

myApp.controller('HomeController',function($scope,HitService){
console.log('====================0');
    console.log($scope.user);
    $scope.submitFrom=function(){
        HitService.login($scope.user.name,$scope.user.password)
            .then(function(data){
                if(data.result=='success'){
                window.location='http://localhost:3000/lucky'
                }
            })
    };
});
angular.element(document).ready(function(){
    angular.bootstrap(document.body,['myApp']);
});
